package cn.lianxi.mrv2._04_;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

public class Test {

	public static void main(String[] args) {

		List<Integer> lists = Arrays.asList(1, 22, 333, 4444);
		List<Integer> list = new ArrayList<Integer>();
		Iterator<Integer> it = lists.iterator();
		while (it.hasNext()) {
			list.add(it.next());
		}

		System.out.println(list.get(3));
		System.out.println(list.get(0));
	}

}
